package com.hmall.order.utis;

public class UserHolder {

    private static final ThreadLocal<Long> threadLocal= new ThreadLocal<>();

    public static void setUser(Long id){
        threadLocal.set(id);
    }
    public static Long getUser(){
        return threadLocal.get();
    }
    public static void removeUser(){
        threadLocal.remove();
    }
}
